//
//  AboutUsViewController.m
//  GameBoss
//
//  Created by dllo on 15/4/28.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AboutUsViewController.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@interface AboutUsViewController ()
@property (nonatomic , retain) UIView *aboutView;
@property (nonatomic, retain) UIImageView *imageBack;
@end

@implementation AboutUsViewController
- (void)dealloc
{
    [_imageBack release];
    [_aboutView release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.imageBack= [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 64)];
    self.imageBack.image = [UIImage imageNamed:@"bejingtupian"];
    [self.view addSubview:self.imageBack];
    
    self.aboutView = [[UIView alloc] initWithFrame: CGRectMake(0, HEIGHT, WIDTH, HEIGHT)];
    self.aboutView.backgroundColor = [UIColor clearColor];
    [self.imageBack addSubview:self.aboutView];
    
    UILabel *aboutLabName = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH*0.05, 10, WIDTH*0.6, HEIGHT*0.07)];
    aboutLabName.text = @"内容";
    aboutLabName.textColor = [UIColor blueColor];
    aboutLabName.font = [UIFont systemFontOfSize:25];
    [self.aboutView addSubview:aboutLabName];
    [aboutLabName release];
    
    UILabel *aboutLabContent = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH*0.1, HEIGHT*0.05, WIDTH*0.85, HEIGHT*0.25)];
    aboutLabContent.text = @"GameBoss是为了用户精心打造的一款免费游戏资讯, 导购, 评测,视频等一些内容, 我们将继续营造一个与玩家互相交流的空间";
//    aboutLabContent.textColor = [UIColor blueColor];
    aboutLabContent.numberOfLines = 6;
    aboutLabContent.font = [UIFont systemFontOfSize:18];
      [self.aboutView addSubview:aboutLabContent];
    [aboutLabContent release];
    
    UILabel *aboutLabFunction = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH*0.05, HEIGHT*0.35, WIDTH*0.6, HEIGHT*0.07)];
    aboutLabFunction.text = @"功能介绍";
    aboutLabFunction.textColor = [UIColor blueColor];
    aboutLabFunction.font = [UIFont systemFontOfSize:25];
    [self.aboutView addSubview:aboutLabFunction];
    [aboutLabFunction release];
    
    UILabel *aboutLabContentF = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH*0.1, HEIGHT*0.4, WIDTH*0.85, HEIGHT*0.25)];
    aboutLabContentF.text = @"1.游戏资讯\n2.游戏图片\n3.游戏视频\n4.游戏硬件";
//    aboutLabContentF.textAlignment = NSTextAlignmentCenter;
//    aboutLabContentF.textColor = [UIColor blueColor];
    aboutLabContentF.numberOfLines = 4;
    aboutLabContentF.font = [UIFont systemFontOfSize:18];
    [self.aboutView addSubview:aboutLabContentF];
    [aboutLabContentF release];

    
//    UILabel *play = [[UILabel alloc] initWithFrame:CGRectMake(150, 450, WIDTH-50, 100)];
//    play.text = @"小艺哥哥\n小敏哥哥\n莲莲萌萌哒";
//    play.numberOfLines = 0;
//    [play sizeToFit];
//    [self.aboutView addSubview:play];
//    [play release];
    [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(click) userInfo:nil repeats:YES];
}
- (void)click
{
    [UIView animateWithDuration:2 animations:^{
        self.aboutView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
